
export interface logs {//操作日志列表
    _gp: string
    _mt: string
    page: number
    limit: number
    targetAdminId?: string
    total: number
    title?: string | string
    status?: number | string
    type?: number | string
}


export interface roles {//角色管理列表
    _gp: string
    _mt: string
    page: number
    limit: number
    total: number
}
export interface admins {//管理员列表
    _gp: string
    _mt: string
    page: number
    limit: number
    username: string
    total: number
}

export class ClassPagination {//分页
    /**
     * 当前页码
     */
    page: number = 1;
    /**
     * 每页条数
     */
    limit: number = 10;
    /**
     * 数据总条数
     */
    total: number = 0;
}

export interface User {
    groupShopSkuDTOList(groupShopSkuDTOList: any): string
    price: number
    groupShopSkuList: []
    unionType?: number
    unionValue: any
    id: number
    adId: number
    password?: number
    username: string
    realname: string
    phone: number
    roleIds: string
    status: number | string
    name: string
    desc: string
    roleId: number
    role: object
    gmtStart: number
    gmtEnd: number
    type?: number | undefined | string
    spuId?: number
}
export interface Tree {//树形控件
    id: number
    label: string
    children?: Tree[]
}
export interface rls {//角色枚举+弹出下拉框
    value: number
    label: string
    id?: number
    name?: number
}
export interface forms {//优惠劵

    limit: number
    total: number | string | undefined
    description: string
    discount: number
    min: number
    categoryId: number | undefined
    days: number | string
    gmtStart: number | string
    gmtEnd: number | string
    categoryTitle?: string
    title?: string
    type?: number | undefined | string
    status?: number | undefined | string
}
export interface advs {//广告管理
    title: string
    type: number | undefined
    status: number
    imgUrl: string
    color: string
    unionType: number | undefined
    unionValue: any
    adId: number
    id?: number
}
export interface groups {//商品管理--团购商品
    id?: number | string
    spuId: number | undefined
    img?: string
    buyerNum?: number
    title?: string
    status?: number
    gmtStart: string | number
    gmtEnd: string | number
    minNum: number | undefined | string
    automaticRefund: number
    groupShopSkuList: []
}
export interface prices {
    skuGroupShopPrice: any//团购价格
    price: number | string,//现价
    title: number | string,//sku类型名
    index: any
    num: number | string | undefined
}

export interface groupTable {
    id: string
    spuId: undefined//商品id
    automaticRefund: number//未满策略
    gmtStart: number | string//开始时间
    gmtEnd: number | string//结束时间
    minNum: undefined,
    groupShopSkuList: []
    skuGroupShopPrice: number
}

export interface freights {
    id: number
    title: string
    label: string
    value: string
    spuLocation: string

}
export interface uploads {//上传图片
    name: string
    url: string
}

export interface goodsForm {//创建商品表单
    title: string//商品名称
    originalPrice: number//原始价格
    price: number//现价
    vipPrice: number//会员价格
    stock?: number//库存
    freightTemplateId: undefined | string//运费模版
    status: number//商品状态
    img: any//商品图片
    imgList: string[]
    unit: string//商品单位
    categoryId: number | string//所属类目
    description: string//商品简介
    detail: string//商品详细介绍简介 商品简介
    attributeList: any//商品参数列表
    specificationList: any//规格纬度列表
    skuList: any//sku列表
    index?: number
    inputSkuTagVisible?: Boolean//控制输入框的显示隐藏
    inputSkuTagValue?: Boolean //绑定输入框初始值
}

export interface paramsList {//商品参数列表
    attribute: string
    value: string
}

export interface sizeList {//规格纬度列表
    title: string | undefined,//类型名称
    gmtCreate: number | undefined | string//创建时间
    index: number//下标
    inputSkuTagValue: any//输入框绑定值
    inputSkuTagVisible: Boolean//控制输入框显示与隐藏
    gmtUpdate: number
    times: number | string | undefined
}
export interface skuLists {
    names: any
    inputSkuTagVisible: boolean
    inputSkuTagValue: any//sku列表
    price: any //现价
    vipPrice: number //VIP价格
    originalPrice: number //吊牌价(原价)
    stock: number //库存
    weight: number//重量
    img: string //SKU图片
    barCode: undefined | number //条形码
    title: string
    specification: string
    values: any //添加tag标签列表
}

export interface bulks {//sku表--批量定价
    price: number | string | undefined //现价
    vipPrice: number | string | undefined //VIP价格
    originalPrice: number | string | undefined //吊牌价(原价)
    weight: number | string | undefined //重量
}

export class classTag {
    name: string | undefined = "";
    fullPath: string | undefined = "";
    title: string | undefined = "";
    constructor(fullPath: string, title: string, name: string) {
        this.fullPath = fullPath;
        this.name = name;
        this.title = title;
    }
}

// class定义类型--第二种定义类型写法
export class ClassSpecificationList {
    "title": string = '';//规格名称
    "gmtCreate": number = 0;//创建时间
    "values": string[] = [];//规格值数组
    "inputSkuTagVisible": boolean = false;//控制输入框的显示隐藏
    "inputSkuTagValue": string = '';//绑定输入框初始值
    "index": number = 0;//当作下标使用
    "gmtUpdate": number = 0;//修改时间 --不需要
    "inputSkuBtnVisible": Boolean = true;//控制添加规格值按钮的显示隐藏 --不需要
}